home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / nickname < prev    next >
Encoding:
Text File  |  2001-03-21  |  576 b   |  25 lines

  1. Synopsis:
  2.    on [<modes>]nickname [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client observes a nickname change.
  6.    It only hooks once per nick change, not once per channel.
  7.  
  8. Parameters:
  9.    $0    old nickname
  10.    $1    new nickname
  11.  
  12. Examples:
  13.    To distinguish the client from another user:
  14.       on ^nickname "*" {
  15.          if ( [$0] == N ) {
  16.             echo *** Your nickname is now $1
  17.          } {
  18.             echo *** $0 has changed nicks to $1
  19.          }
  20.       }
  21.  
  22. See Also:
  23.    nick(1); on(5) channel_nick
  24.  
  25.